package ynu.edu.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope
public class DynamicConfig {
    
    @Value("${app.message:默认消息}")
    private String message;
    
    @Value("${app.version:1.0}")
    private String version;
    
    @Value("${app.environment:dev}")
    private String environment;
    
    public String getMessage() {
        return message;
    }
    
    public String getVersion() {
        return version;
    }
    
    public String getEnvironment() {
        return environment;
    }
} 